﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class BettingType
    {
        private IDataRepository _dataObject;
        public BettingType(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateBettingType(this);
        }
        public List<BettingType> GetAllBettingType()
        {
            return _dataObject.GetAllBettingType();
        }
        public void DeleteBettingType()
        {
            _dataObject.DeleteBettingType(this);
        }
        public void GetBettingTypeById()
        {
            _dataObject.GetBettingTypeById(this);
        }
        public void UpdateBettingType()
        {
            _dataObject.UpdateBettingType(this);
        }
    }
}
